<!DOCTYPE HTML>
<html lang="en-US">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<table border="10" width="50%" id="tb1">
    <tr>
        <td>1</td>
        <td>2</td>
    </tr>
    <tr>
        <td>3</td>
        <td>4</td>
    </tr>
</table>
<script language="javascript">
    document.getElementById('tb1').onclick=function() {
        console.dir(event.srcElement.tagName);
        console.dir(event.target);
    };
</script>
</body>
</html>